﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Webs.Controllers
{
    public class PaymentController : Controller
    {
        //
        // GET: /Payment/

        public ActionResult Index()
        {
            return RedirectToAction("Add");
        }

        [HttpGet]
        public ActionResult Add(string id)
        {
            //id : BillOfLoadingNo
            ViewBag.Title = SharedRes.SharedString.Add + " " + BillRes.BillString.Payment.ToString() + " : " + id;
            return View();
        }

        public ActionResult BillPayment()
        {

            return PartialView("_PaymentList");
        }

        [HttpGet]
        public ActionResult Edit(string id)
        {
            //id : BillOfLoadingNo
            ViewBag.Title = SharedRes.SharedString.Edit + " " + BillRes.BillString.Payment.ToString() + " : " + id;
            return View();
        }

        [HttpGet]
        public ActionResult Search()
        {
            ViewBag.Title = SharedRes.SharedString.Search + " " + BillRes.BillString.Payment.ToString();
            return View();
        }
    }
}
